Skip to content

Support resuming iteration from saved end_cursor. Implements #226 (WIP)#316

Open
tonycpsu wants to merge 2 commits intoalthonos:masterfrom
tonycpsu:fix_226_resume_cursor
Open

Support resuming iteration from saved end_cursor. Implements #226 (WIP)#316
tonycpsu wants to merge 2 commits intoalthonos:masterfrom
tonycpsu:fix_226_resume_cursor

Conversation

@tonycpsu
Copy link
Copy Markdown

  • Adds a cursor argument to the pages() method to begin iteration using a stored end_cursor from a previous request.
  • Adds a -c / --cursor command-line argument to support downloading beginning at a given end_cursor value.

The latter isn't particularly useful yet without a way to either display cursors in the downloader output or better yet save them to the cache directory, but it demonstrates the functionality.

This is a work in progress, but I figured I'd show what I have now to see if it merits merging with some additional documentation and polish.

@codecov
Copy link
Copy Markdown

codecov Bot commented Dec 29, 2020

Codecov Report

❌ Patch coverage is 41.66667% with 7 lines in your changes missing coverage. Please review.
✅ Project coverage is 51.04%. Comparing base (282de89) to head (327c3d3).
⚠️ Report is 18 commits behind head on master.

Files with missing lines Patch % Lines
instalooter/looters.py 33.33% 4 Missing ⚠️
instalooter/pages.py 50.00% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           master     #316       +/-   ##
===========================================
- Coverage   79.83%   51.04%   -28.80%     
===========================================
  Files          16       26       +10     
  Lines         972     1538      +566     
  Branches      134      151       +17     
===========================================
+ Hits          776      785        +9     
- Misses        155      738      +583     
+ Partials       41       15       -26     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants